<%--
  Created by IntelliJ IDEA.
  User: zjk
  Date: 2018-08-04
  Time: 10:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>报价窗口</title>
    <!-- 引入公用表单样式 -->
    <link href="css/utils/utilsForm.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--引入报价JS-->
<script type="text/javascript" src="js/before-sale/offer.js"></script>
<!-- 引入检测js -->
<script type="text/javascript" src="js/before-sale/check.js"></script>
<form id="zjk-edit-offer-f" action="zjk-editOffer" method="post">

    <div class="dd">
        <input   name="ofId" type="hidden" >
        <input name="offerIsDel" type="hidden">
        <input id="zjk-edit-offer-theme" name="theme" class="easyui-textbox" data-options="label:'主题',width:1040" validType="textname">
        <span style="display: inline-block;widht:50px;"></span>
        <span style="" class="radioSpan">转成订单：
            <input id="offer-to-order" type="radio" name="stateFlag" value="">转成订单</input>
        </span>
    </div>
    <div class="dd">
        <input id="zjk-edit-offer-clientId"  class="easyui-combobox" name="clientId"
               data-options="label:'客户',width:685,hasDownArrow: false" />




    </div>

    <div class="dd">
        <input id="zjk-edit-offer-ofNo" name="ofNo" class="easyui-textbox" data-options="label:'报价单号',editable:false,width:516">
        <span style="display: inline-block;widht:50px;"></span>
        <input id="zjk-edit-offer-ofType" class="easyui-textbox" name="ofType"
               data-options="label:'类型',width:516," />
    </div>
    <div class="dd">
        <input id="zjk-edit-offer-chanceId" class="easyui-combobox" name="chanceId"
               data-options="label:'销售机会',width:516," />
        <span style="display: inline-block;widht:50px;"></span>
        <input id="zjk-edit-offer-allOffer"  name="allOffer" class="easyui-textbox" data-options="label:'￥报价(总)',width:516" validType="checkDotNumber">
    </div>
    <div class="dd">

        <select id="zjk-edit-offer-checkState" prompt="请选择" class="easyui-combobox" name="checkState" style="width:1040px;" data-options="label:'审核状态',labelAlign:'right',panelHeight:'auto'">

            <option>未审核</option>
            <option>审核通过</option>
            <option>审核失败</option>
        </select>

    </div>

    <div class="dd">
        <input id="zjk-edit-offer-userId"  name="userId" class="easyui-textbox" data-options="label:'报价人',width:343,hasDownArrow: false">
        <span style="display: inline-block;widht:50px;"></span>
        <input id="zjk-edit-offer-contactId"  name="contactId" class="easyui-combobox" data-options="label:'接收人',width:343">

        <input id="zjk-edit-offer-date" name="date"  type= "text" class= "easyui-datebox" data-options="label:'日期',width:343,panelWidth:273,disabled:true">
    </div>
    <div class="dd"></div>


</form>
    <table id="zjk-offer-detail-dg" class="easyui-datagrid table-chance"  data-options="fit:true,striped:true,fitColumns:true,checkOnSelect:false,
   autoRowHeight:true,nowrap:false,pagination:true,scrollbarSize:0,toolbar:'#zjk-offer-detail-tools',
pageList:[5,10,15,20],pageSize:5,
url:'',method:'post'">
        <thead>
        <tr class="datagrid-header-row">
            <th data-options="field:'pId',width:50,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.pid;}">产品编号</th>
            <th data-options="field:'pname',width:40,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.pname;}">产品名称</th>
            <th data-options="field:'pwunit',width:100,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.pwunit;}">单位</th>
            <th data-options="field:'counts',width:100,align:'center',formatter: function (value, row, index) {
                                                                return row.offerDetail.counts;}">数量</th>
            <th data-options="field:'poprice',width:60,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.poprice;}">单价</th>
            <th data-options="field:'totalMoney',width:70,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.poprice * row.offerDetail.counts;}">总金额</th>
            <th data-options="field:'setTime',width:90,align:'center',formatter: function (value, row, index) {
                                                                return row.offerDetail.setTime;}" >创建时间</th>

        </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
    <!--工具栏-->
    <div id="zjk-offer-detail-tools">
        <a id="zjk-offer-edtails-tools-add" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-mini_add2" >添加</a>
        <a id="zjk-offer-edtails-tools-remove" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-my_delete" >删除</a><%--
        <a id="zjk-offer-edtails-tools-edit" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-my_edit" >修改</a>    </div>--%>

<%--添加明细--%>
<div id="add-offer-details" class="easyui-dialog" style="background-color:#EBEFF2;padding: 0px;" data-options="title:'添加商品',modal:true,
			iconCls:'icon-save2',
			buttons:'#zjk-offer-edtails-add-dialog-bb',
			width:'50%',
			height:'36%',
			closed:true,
			href:'add-offer-details',
			shadow:true
 "></div>
<%--编辑明细--%>
<div id="edit-offer-details" class="easyui-dialog" style="background-color:#EBEFF2;padding: 0px;" data-options="title:'编辑商品',modal:true,
			iconCls:'icon-save2',
			buttons:'#zjk-offer-edtails-edit-dialog-bb',
			width:'50%',
			height:'36%',
			closed:true,
			href:'zjk-offer-edit-offerDetail-form',
			shadow:true
 "></div>
<%--添加明细按钮--%>
<div id="zjk-offer-edtails-add-dialog-bb">
    <a href="#" id="zjk-offer-edtails-add-dialog-bb-save" class="easyui-linkbutton" data-options="iconCls:'icon-ok2'">保存</a>
    <a href="#" id="zjk-offer-edtails-add-dialog-bb-close" class="easyui-linkbutton" data-options="iconCls:'icon-cancel2'">关闭</a>
</div>
<%--编辑明细按钮--%>
<div id="zjk-offer-edtails-edit-dialog-bb">
    <a href="#" id="zjk-offer-edtails-edit-dialog-bb-save" class="easyui-linkbutton" data-options="iconCls:'icon-ok2'">保存</a>
    <a href="#" id="zjk-offer-edtails-edit-dialog-bb-close" class="easyui-linkbutton" data-options="iconCls:'icon-cancel2',onClick:function(){
    $('#edit-offer-details').dialog('close')}">关闭</a>
</div>



</body>
</html>
